const _ = require('lodash');
const jsdom = require('jsdom');
const {JSDOM} = jsdom;
const {document} = (new JSDOM('<!doctype html><html><body></body></html>')).window;
global.document = document;
const window = document.defaultView;
const $ = require('jquery')(window);
let a = [{ node:{key: '22'} , pos: '0-0-2'},{ node:{key: '2255'} , pos: '0-0-6'}]

let b = a.map(item => ({key: item.node.key, pos: item.pos}))

let c = {}
var has = _?.isEmpty(c)

a = '11.dpdf'
var b1 = a.toLocaleLowerCase().endsWith('.pdf');
console.log(_.isEmpty(23214))
console.log(_.isEmpty(qqq))
console.log(_.isEmpty(zaici))
